//
//  BConversionCellModel.m
//  GSBlockChain
//
//  Created by guoshikeji_a on 2019/1/7.
//  Copyright © 2019 guoshikeji. All rights reserved.
//

#import "BConversionCellModel.h"

//
#import "BCConversionCurrencyHuilvCell.h"
#import "BCConversionCurrencyFeesCell.h"
#import "BCConversionCurrencyTimeCell.h"

@implementation BConversionCellModel



+ (NSMutableArray *)registerCells {
    NSMutableArray *cells = [NSMutableArray array];
    [cells addObject:NSStringFromClass(BCConversionCurrencyHuilvCell.class)];
    [cells addObject:NSStringFromClass(BCConversionCurrencyFeesCell.class)];
    [cells addObject:NSStringFromClass(BCConversionCurrencyTimeCell.class)];
    return cells;
}


+ (NSMutableArray *)dataSource {
    NSMutableArray *source = [NSMutableArray array];
    //
    [source addObject:[self huilv]];
    [source addObject:[self fees]];
    [source addObject:[self time]];
    return source;
}



+ (BConversionCellModel *)huilv {
    BConversionCellModel *model = [BConversionCellModel new];
    model.titleKey = @"Estimated exchange rate";
    model.cellClass = BCConversionCurrencyHuilvCell.class;
    return model;
}
+ (BConversionCellModel *)fees {
    BConversionCellModel *model = [BConversionCellModel new];
    model.titleKey = @"Handling fee";
    model.cellClass = BCConversionCurrencyFeesCell.class;
    return model;
}
+ (BConversionCellModel *)time {
    BConversionCellModel *model = [BConversionCellModel new];
    model.titleKey = @"Arrived time";
    model.cellClass = BCConversionCurrencyTimeCell.class;
    return model;
}

@end
